home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
ddx-mips.zip
/
MIPS.CF
< prev
next >
Wrap
Text File
|
1992-08-11
|
27KB
|
799 lines
/**/# platform: $Header: Mips.cf,v 4.104 92/08/11 17:23:55 dd Exp $
/* DELETEME+ */
/* this section will be deleted in the installed version of Mips.cf */
/* delete next line for non-5.0 build */
#define RISCOS5
/* delete next line for non-cross build */
#define CROSSBUILD
#ifndef RISCOS5
#define RISCOS4
#endif
#if defined(RISCOS5) && !defined(PSManInst)
#define PSManInst YES
#endif
#if defined(CROSSBUILD) && !defined(CrossEnvEnable)
#define CrossEnvEnable YES
#endif
#ifndef NOMIPSBUILD
#define MIPSBUILD
#define MipsSysvArchitecture /* force SYSV for MIPS RW build */
#endif /* !NOMIPSBUILD */
#undef CROSSBUILD
#undef RISCOS5
/* DELETEME- */
#define OSName RISCOS
#ifndef OSMajorVersion
#ifndef RISCOS4
#define OSMajorVersion 5
#define OSMinorVersion 0
#else
#define OSMajorVersion 4
#define OSMinorVersion 5
#endif
#endif /* OSMajorVersion */
/**/# operating system: OSName OSMajorVersion./**/OSMinorVersion
/*****************************************************************************
* Platform-specific parameters *
*****************************************************************************/
/* figure out systype; default is SVR3 */
#if !defined(MipsBsdArchitecture) && \
!defined(MipsSvr4Architecture) && \
!defined(MipsSvr3Architecture) && \
!defined(MipsSysvArchitecture)
/* explicitly specified BSD overrides RW4.1 imake default SYSV */
#ifdef BSD
#undef SYSV
#endif
/* explicitly specified SVR3 overrides RW4.0 imake default BSD43 */
#ifdef SVR3
#undef BSD43
#endif
#if defined(_SYSTYPE_BSD43) || defined(SYSTYPE_BSD43) || \
defined(BSD) || defined(BSD43)
#define MipsBsdArchitecture
#else /* BSD43 */
#if defined(_SYSTYPE_SVR4) || defined(SYSTYPE_SVR4) || defined(SVR4)
#define MipsSvr4Architecture
#else /* SVR4 */
#if defined(_SYSTYPE_SYSV) || defined(SYSTYPE_SYSV) || defined(SYSV) || \
defined(_SYSTYPE_SVR3) || defined(SYSTYPE_SVR3) || defined(SVR3)
#define MipsSysvArchitecture
#endif /* SVR3 */
#endif /* SVR4 */
#endif /* BSD43 */
#endif /* !Mips*Architecture */
/* make sure we don't have conflicting definitions */
#ifdef MipsBsdArchitecture
#define MipsSystype bsd43
#undef SYSV
#endif /* MipsBsdArchitecture */
#ifdef MipsSvr4Architecture
#define MipsSystype svr4
#undef BSD43
#undef SYSV
#endif /* MipsSvr4Architecture */
#if defined(MipsSvr3Architecture) || defined(MipsSysvArchitecture)
#undef MipsSvr3Architecture
#undef MipsSysvArchitecture
#define MipsSvr3Architecture
#define MipsSysvArchitecture
#define MipsSystype sysv
#undef BSD43
#endif /* MipsSysvArchitecture */
#ifndef DSOEnable
#if OSMajorVersion >= 5
#define DSOEnable YES
#else
#define DSOEnable NO
#endif
#endif /* DSOEnable */
#ifndef SVR4Enable
#if OSMajorVersion >= 5
#define SVR4Enable YES
#else
#define SVR4Enable NO
#endif
#endif /* SVR4Enable */
#ifndef CrossEnvEnable
#define CrossEnvEnable NO
#endif
#ifdef UseInstalled
#define _Use(a,b) a
#else
#define _Use(a,b) b
#endif
/* generic compiler options */
CCOPT = -signed
DEFINES = -D_NO_PROTO /* For Motif. Hope it doesn't mess anything up */
OPTIM = -O -Olimit 2000
#if DSOEnable
MIPSLDOPTIONS = \
-Wl,-no_library_replacement,-transitive_link _Use( ,\
-L$(AWIDGETSRC) -L$(TOOLKITSRC) -L$(XMUSRC) \
-L$(EXTENSIONSRC)/lib -L$(XLIBSRC) -L$(OLDXLIBSRC))
#endif
/* systype-specific compiler options */
/* SVR4LIBS: -lgen is for regex */
SVR4TYPE = -systype svr4
SVR4DEFS = -DMips -DSVR4 -DMALLOC_0_RETURNS_NULL
SVR4INCS =
SVR4LIBS = -lsocket -lnsl -lmld -lgen
SVR4CFLAGS = $(OPTIM) $(CCOPT) $(SVR4TYPE) $(INCLUDES) $(SVR4DEFS) $(SVR4INCS) $(DEFINES)
DSOLD_svr4 = -elf -rpath /usr/svr4/usr/lib -set_version svr4_4.10
DSOLD_svr4ABI = -elf
/* SYSVINCS: this should be fixed! */
/* SYSVLIBS: -lPW is for regcmp */
SYSVTYPE = -systype svr3
SYSVDEFS = -DMips -DSYSV -DSVR3 -DMALLOC_0_RETURNS_NULL
SYSVINCS = -I$(COMP_TARGET_ROOT)/usr/include/bsd
SYSVLIBS = -lbsd -lmld -lPW
SYSVCFLAGS = $(OPTIM) $(CCOPT) $(SYSVTYPE) $(INCLUDES) $(SYSVDEFS) $(SYSVINCS) $(DEFINES)
DSOLD_sysv = -rpath /usr/svr3/usr/lib -set_version sysv_4.10
BSDTYPE = -systype bsd43
BSDDEFS = -DMips -DBSD43
BSDINCS =
BSDLIBS = -lmld
BSDCFLAGS = $(OPTIM) $(CCOPT) $(BSDTYPE) $(INCLUDES) $(BSDDEFS) $(BSDINCS) $(DEFINES)
DSOLD_bsd43 = -rpath /usr/bsd43/usr/lib -set_version bsd43_4.10
#ifdef MipsSysvArchitecture
#define SystemV YES
#undef SYSV
#define MipsSystypeUC SYSV
SYSTYPE = $(SYSVTYPE)
SYSDEFS = $(SYSVDEFS)
SYSINCS = $(SYSVINCS)
SYSLIBS = $(SYSVLIBS)
#define LintLibFlag -o
#define LintOpts -ax
#endif /* MipsSysvArchitecture */
#ifdef MipsBsdArchitecture
#define SystemV NO
#undef BSD
#define MipsSystypeUC BSD
SYSTYPE = $(BSDTYPE)
SYSDEFS = $(BSDDEFS)
SYSINCS = $(BSDINCS)
SYSLIBS = $(BSDLIBS)
#define LintLibFlag -C
#define LintOpts -axz
#endif /* MipsBsdArchitecture */
#ifdef MipsSvr4Architecture
#define SystemV4 YES /* XXX is this needed? */
#undef SVR4
#define MipsSystypeUC SVR4
SYSTYPE = $(SVR4TYPE)
SYSDEFS = $(SVR4DEFS)
SYSINCS = $(SVR4INCS)
SYSLIBS = $(SVR4LIBS)
#define LintLibFlag -o
#define LintOpts -ax
#endif /* MipsSvr4Architecture */
/* Override macros defined in Imake.tmpl */
#define InstDatFlags -m 0444
#define ArCmd ar cr
#define BootstrapCFlags $(SYSDEFS) $(SYSTYPE)
#define CcCmd cc $(ECFLAGS)
#define ExecableScripts YES
#define CppCmd /usr/X11/bin/extra/cpp
#define InstallCmd $(ETCDIR)/mipsinstall
#define LdCmd ld $(LDFLAGS)
#define LnCmd ln -s
#define MakeCmd make MakeEnv
#define RanlibCmd true
#define ServerCcCmd cc
#define StandardCppDefines $(SYSDEFS)
#define StandardDefines $(SYSDEFS) $(SYSTYPE) $(SYSINCS)
#define ExtraLibraries $(SYSLIBS)
#define SetTtyGroup YES
#define UnalignedReferencesAllowed NO /* if arbitrary deref is okay */
#ifdef MipsBsdArchitecture
#define HasBsearch NO
#define HasVoidSignalReturn NO
#else
#define HasBsearch YES
#define HasVoidSignalReturn YES
#endif
#if DSOEnable
#define FilesToClean *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut *.u *.b *.so
#endif
#if DSOEnable
#define LibSuffix so
#else
#define LibSuffix a
#endif
ETCDIR = /etc
ULIBDIR = /usr/svr3/usr/lib
#define MakeEnv ETCDIR='$(ETCDIR)' ULIBDIR='$(ULIBDIR)' -e
XINSTALLDIR = _Use(X11,RISCwindows4.11)
INSTALLFLAGS = -m 0555
RS1210DIR = $(DESTDIR)/usr/$(XINSTALLDIR)/RS1210
CONTRIBBINDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/bin
CONTRIBAPPSDEFDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/lib/app-defaults
CONTRIBMANDIR = $(MANDIR)
CONTRIBSRCDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/contrib/src
EXTRABINDIR = $(BINDIR)/extra
RS1210LIBDIR = $(LIBDIR)/ncd
BINPATH = /usr/bin/X11
LIBPATH = /usr/lib/X11
ETCPATH = /usr/etc/X11
ADMPATH = /usr/adm
NCDPATH = /usr/X11/ncd
EXTRABINPATH = $(BINPATH)/extra
NCDLIBPATH = $(LIBPATH)/ncd
XINITPATH = $(LIBPATH)/xinit
XDMPATH = $(ETCPATH)/xdm
UWMPATH = $(LIBPATH)/uwm
AWMPATH = $(LIBPATH)/awm
MWMPATH = $(LIBPATH)/mwm
TWMPATH = $(LIBPATH)/twm
XAPPLOADPATH = $(LIBPATH)/app-defaults
RS1210SRC = $(TOP)/rs1210
/** some additional Motif stuff **/
/* #define ToolKitSrc $(MLIBSRC)/Xt MLIBSRC uses Motif libXt for build */
MOTIFSRC = $(TOP)/motif
MLIBSRC = $(MOTIFSRC)/lib
MCLIENTSRC = $(MOTIFSRC)/clients
MDEMOSRC = $(MOTIFSRC)/demos
MWIDGETSRC = $(MLIBSRC)/Xm
INCLUDEXMSRC = $(MLIBSRC)/Xm
MRESOURCESRC = $(MLIBSRC)/Mrm
MWMDIR = $(LIBDIR)/Mwm
DEMOBINDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/demos/bin
DEMOSRCDIR = $(DESTDIR)/usr/$(XINSTALLDIR)/demos/src
MINCLUDE = $(TOP)/include
UILSRC = $(MCLIENTSRC)/uil
DEPXMLIB = $(MipsSystypeUC/**/DEPXMLIB)
XMLIB = $(MipsSystypeUC/**/XMLIB)
DEPMRESOURCELIB = $(MipsSystypeUC/**/DEPMRESOURCELIB)
MRESOURCELIB = $(MipsSystypeUC/**/MRESOURCELIB)
DEPUILLIB = $(MipsSystypeUC/**/DEPUILLIB)
UILLIB = $(MipsSystypeUC/**/UILLIB)
/* WCM/MRI widget creation library stuff (for mvd and xdm) */
WCSRC = $(TOP)/lib/Wcl
WCLIBSRC = $(WCSRC)/Wc
DEPWCLIB = $(WCLIBSRC)/libWc.LibSuffix
WCLIB = _Use(-lWc,$(DEPWCLIB))
XMPLIBSRC = $(WCSRC)/Xmp
DEPXMPLIB = $(XMPLIBSRC)/libXmp.LibSuffix
XMPLIB = _Use(-lXmp,$(DEPXMPLIB))
XPLIBSRC = $(WCSRC)/Xp
DEPXPLIB = $(XPLIBSRC)/libXp.LibSuffix
XPLIB = _Use(-lXp,$(DEPXPLIB))
/* SVR4 Library macros */
/* define NONABI to use extra RISC/os shared libraries not in ABI */
#ifdef NONABI
#define Svr4LibSuffix LibSuffix
#define Svr4Use(a,b) _Use(a,b)
#else
#define Svr4LibSuffix a
#define Svr4Use(a,b) b
#endif
SVR4DEPEXTENSIONLIB = _Use($(USRLIBDIR),$(EXTENSIONSRC)/lib)/libsvr4Xext.Svr4LibSuffix
SVR4EXTENSIONLIB = Svr4Use(-lXext,$(SVR4DEPEXTENSIONLIB))
#if DSOEnable
SVR4DEPXLIB1 = _Use($(USRLIBDIR),$(XLIBSRC))/libsvr4X11.so.1
#else
SVR4DEPXLIB1 = _Use($(USRLIBDIR),$(XLIBSRC))/libsvr4X11.Svr4LibSuffix
#endif
SVR4DEPXLIB = $(SVR4DEPEXTENSIONLIB) $(SVR4DEPXLIB1)
#ifdef Mips_ld_understands_libX11_so_1
SVR4XLIB = $(SVR4EXTENSIONLIB) _Use(-lX11,$(SVR4DEPXLIB1))
#else
SVR4XLIB = $(SVR4EXTENSIONLIB) $(SVR4DEPXLIB1)
#endif
SVR4DEPXAUTHLIB = _Use($(USRLIBDIR),$(XAUTHSRC))/libsvr4Xau.Svr4LibSuffix
SVR4XAUTHLIB = Svr4Use(-lXau,$(SVR4DEPXAUTHLIB))
SVR4DEPXMULIB = _Use($(USRLIBDIR),$(XMUSRC))/libsvr4Xmu.Svr4LibSuffix
SVR4XMULIB = Svr4Use(-lXmu,$(SVR4DEPXMULIB))
SVR4DEPOLDXLIB = _Use($(USRLIBDIR),$(OLDXLIBSRC))/libsvr4oldX.Svr4LibSuffix
SVR4OLDXLIB = Svr4Use(-loldX,$(SVR4DEPOLDXLIB))
SVR4DEPXTOOLLIB = _Use($(USRLIBDIR),$(TOOLKITSRC))/libsvr4Xt.Svr4LibSuffix
SVR4XTOOLLIB = Svr4Use(-lXt,$(SVR4DEPXTOOLLIB))
SVR4DEPXAWLIB = _Use($(USRLIBDIR),$(AWIDGETSRC))/libsvr4Xaw.Svr4LibSuffix
SVR4XAWLIB = Svr4Use(-lXaw,$(SVR4DEPXAWLIB))
SVR4DEPXDMCPLIB = _Use($(USRLIBDIR),$(XDMCPLIBSRC))/libsvr4Xdmcp.Svr4LibSuffix
SVR4XDMCPLIB = Svr4Use(-lXdmcp,$(SVR4DEPXDMCPLIB))
SVR4DEPXMTOOLLIB = _Use($(USRLIBDIR),$(MTOOLKITSRC))/libsvr4Xt.Svr4LibSuffix
SVR4XMTOOLLIB = Svr4Use(-lXt,$(SVR4DEPXMTOOLLIB))
SVR4DEPXMLIB = _Use($(USRLIBDIR),$(MWIDGETSRC))/libsvr4Xm.Svr4LibSuffix
SVR4XMLIB = Svr4Use(-lXm,$(SVR4DEPXMLIB))
SVR4DEPMRESOURCELIB = _Use($(USRLIBDIR),$(MRESOURCESRC))/libsvr4Mrm.Svr4LibSuffix
SVR4MRESOURCELIB = Svr4Use(-lMrm,$(SVR4DEPMRESOURCELIB))
SVR4DEPUILLIB = _Use($(USRLIBDIR),$(UILSRC))/libsvr4Uil.Svr4LibSuffix
SVR4UILLIB = Svr4Use(-lUil,$(SVR4DEPUILLIB))
SVR4DEPWCLIB = _Use($(USRLIBDIR),$(WCLIBSRC))/libsvr4Wc.Svr4LibSuffix
SVR4WCLIB = Svr4Use(-lWc,$(SVR4DEPWCLIB))
SVR4DEPXMPLIB = _Use($(USRLIBDIR),$(XMPLIBSRC))/libsvr4Xmp.Svr4LibSuffix
SVR4XMPLIB = Svr4Use(-lXmp,$(SVR4DEPXMPLIB))
SVR4DEPXPLIB = _Use($(USRLIBDIR),$(XPLIBSRC))/libsvr4Xp.Svr4LibSuffix
SVR4XPLIB = Svr4Use(-lXp,$(SVR4DEPXPLIB))
#undef Svr4LibSuffix
#undef Svr4Use
/* SYSV Library macros */
SYSVDEPEXTENSIONLIB = _Use($(USRLIBDIR),$(EXTENSIONSRC)/lib)/libsysvXext.LibSuffix
SYSVEXTENSIONLIB = _Use(-lXext,$(SYSVDEPEXTENSIONLIB))
SYSVDEPXLIB1 = _Use($(USRLIBDIR),$(XLIBSRC))/libsysvX11.LibSuffix
SYSVDEPXLIB = $(SYSVDEPEXTENSIONLIB) $(SYSVDEPXLIB1)
SYSVXLIB = $(SYSVEXTENSIONLIB) _Use(-lX11,$(SYSVDEPXLIB1))
SYSVDEPXAUTHLIB = _Use($(USRLIBDIR),$(XAUTHSRC))/libsysvXau.LibSuffix
SYSVXAUTHLIB = _Use(-lXau,$(SYSVDEPXAUTHLIB))
SYSVDEPXMULIB = _Use($(USRLIBDIR),$(XMUSRC))/libsysvXmu.LibSuffix
SYSVXMULIB = _Use(-lXmu,$(SYSVDEPXMULIB))
SYSVDEPOLDXLIB = _Use($(USRLIBDIR),$(OLDXLIBSRC))/libsysvoldX.LibSuffix
SYSVOLDXLIB = _Use(-loldX,$(SYSVDEPOLDXLIB))
SYSVDEPXTOOLLIB = _Use($(USRLIBDIR),$(TOOLKITSRC))/libsysvXt.LibSuffix
SYSVXTOOLLIB = _Use(-lXt,$(SYSVDEPXTOOLLIB))
SYSVDEPXAWLIB = _Use($(USRLIBDIR),$(AWIDGETSRC))/libsysvXaw.LibSuffix
SYSVXAWLIB = _Use(-lXaw,$(SYSVDEPXAWLIB))
SYSVDEPXDMCPLIB = _Use($(USRLIBDIR),$(XDMCPLIBSRC))/libsysvXdmcp.LibSuffix
SYSVXDMCPLIB = _Use(-lXdmcp,$(SYSVDEPXDMCPLIB))
SYSVDEPXMTOOLLIB = _Use($(USRLIBDIR),$(MTOOLKITSRC))/libsysvXt.LibSuffix
SYSVXMTOOLLIB = _Use(-lXt,$(SYSVDEPXMTOOLLIB))
SYSVDEPXMLIB = _Use($(USRLIBDIR),$(MWIDGETSRC))/libsysvXm.LibSuffix
SYSVXMLIB = _Use(-lXm,$(SYSVDEPXMLIB))
SYSVDEPMRESOURCELIB = _Use($(USRLIBDIR),$(MRESOURCESRC))/libsysvMrm.LibSuffix
SYSVMRESOURCELIB = _Use(-lMrm,$(SYSVDEPMRESOURCELIB))
SYSVDEPUILLIB = _Use($(USRLIBDIR),$(UILSRC))/libsysvUil.LibSuffix
SYSVUILLIB = _Use(-lUil,$(SYSVDEPUILLIB))
SYSVDEPWCLIB = _Use($(USRLIBDIR),$(WCLIBSRC))/libsysvWc.LibSuffix
SYSVWCLIB = _Use(-lWc,$(SYSVDEPWCLIB))
SYSVDEPXMPLIB = _Use($(USRLIBDIR),$(XMPLIBSRC))/libsysvXmp.LibSuffix
SYSVXMPLIB = _Use(-lXmp,$(SYSVDEPXMPLIB))
SYSVDEPXPLIB = _Use($(USRLIBDIR),$(XPLIBSRC))/libsysvXp.LibSuffix
SYSVXPLIB = _Use(-lXp,$(SYSVDEPXPLIB))
/* BSD Library macros */
BSDDEPEXTENSIONLIB = _Use($(USRLIBDIR),$(EXTENSIONSRC)/lib)/libbsd43Xext.LibSuffix
BSDEXTENSIONLIB = _Use(-lXext,$(BSDDEPEXTENSIONLIB))
BSDDEPXLIB1 = _Use($(USRLIBDIR),$(XLIBSRC))/libbsd43X11.LibSuffix
BSDDEPXLIB = $(BSDDEPEXTENSIONLIB) $(BSDDEPXLIB1)
BSDXLIB = $(BSDEXTENSIONLIB) _Use(-lX11,$(BSDDEPXLIB1))
BSDDEPXAUTHLIB = _Use($(USRLIBDIR),$(XAUTHSRC))/libbsd43Xau.LibSuffix
BSDXAUTHLIB = _Use(-lXau,$(BSDDEPXAUTHLIB))
BSDDEPXMULIB = _Use($(USRLIBDIR),$(XMUSRC))/libbsd43Xmu.LibSuffix
BSDXMULIB = _Use(-lXmu,$(BSDDEPXMULIB))
BSDDEPOLDXLIB = _Use($(USRLIBDIR),$(OLDXLIBSRC))/libbsd43oldX.LibSuffix
BSDOLDXLIB = _Use(-loldX,$(BSDDEPOLDXLIB))
BSDDEPXTOOLLIB = _Use($(USRLIBDIR),$(TOOLKITSRC))/libbsd43Xt.LibSuffix
BSDXTOOLLIB = _Use(-lXt,$(BSDDEPXTOOLLIB))
BSDDEPXAWLIB = _Use($(USRLIBDIR),$(AWIDGETSRC))/libbsd43Xaw.LibSuffix
BSDXAWLIB = _Use(-lXaw,$(BSDDEPXAWLIB))
BSDDEPXDMCPLIB = _Use($(USRLIBDIR),$(XDMCPLIBSRC))/libbsd43Xdmcp.LibSuffix
BSDXDMCPLIB = _Use(-lXdmcp,$(BSDDEPXDMCPLIB))
BSDDEPXMTOOLLIB = _Use($(USRLIBDIR),$(MTOOLKITSRC))/libbsd43Xt.LibSuffix
BSDXMTOOLLIB = _Use(-lXt,$(BSDDEPXMTOOLLIB))
BSDDEPXMLIB = _Use($(USRLIBDIR),$(MWIDGETSRC))/libbsd43Xm.LibSuffix
BSDXMLIB = _Use(-lXm,$(BSDDEPXMLIB))
BSDDEPMRESOURCELIB = _Use($(USRLIBDIR),$(MRESOURCESRC))/libbsd43Mrm.LibSuffix
BSDMRESOURCELIB = _Use(-lMrm,$(BSDDEPMRESOURCELIB))
BSDDEPUILLIB = _Use($(USRLIBDIR),$(UILSRC))/libbsd43Uil.LibSuffix
BSDUILLIB = _Use(-lUil,$(BSDDEPUILLIB))
BSDDEPWCLIB = _Use($(USRLIBDIR),$(WCLIBSRC))/libbsd43Wc.LibSuffix
BSDWCLIB = _Use(-lWc,$(BSDDEPWCLIB))
BSDDEPXMPLIB = _Use($(USRLIBDIR),$(XMPLIBSRC))/libbsd43Xmp.LibSuffix
BSDXMPLIB = _Use(-lXmp,$(BSDDEPXMPLIB))
BSDDEPXPLIB = _Use($(USRLIBDIR),$(XPLIBSRC))/libbsd43Xp.LibSuffix
BSDXPLIB = _Use(-lXp,$(BSDDEPXPLIB))
#if CrossEnvEnable
BUILDTOOLSDIR = $(TOP)/buildtools
CROSSENVOVERRIDE= CC="/usr/bin/cc" MIPSLDOPTIONS= LD="/usr/bin/ld" DESTROOT=/ COMP_TARGET_ROOT=/ COMP_HOST_ROOT=/ _RLD_ROOT=/ _RLD_PATH=/lib/rld ETCDIR=/etc ULIBDIR=/usr/lib OPTIM=
#endif /* CrossEnvEnable */
/*****************************************************************************
* *
* POSTSCRIPT MAN PAGE DEFINES *
* *
*****************************************************************************/
#ifdef UseInstalled
#undef PSManInst
#define PSManInst NO
#endif /* PSManInst */
#ifndef PSManInst
#define PSManInst NO
#endif /* PSManInst */
#if PSManInst
#define PSManDirectoryRoot /psman/cat
PSRELATIVEMANPATH = $(MANDIR)/../../**/PSManDirectoryRoot
PSRELATIVELIBMANPATH = $(LIBMANDIR)/../../**/PSManDirectoryRoot
PTROFFDIR = /rwcrossenv/usr/local/bin
PTROFF = $(PTROFFDIR)/ptroff
#endif /* PSManInst */
/*****************************************************************************
* *
* DEFINE PARAMETERS FOR BUILDING *
* *
*****************************************************************************/
#define XmipsServer Xmips /* if BuildServer isn't set false */
#define LibraryDefines $(SYSDEFS) $(SYSTYPE) $(SYSINCS)
#define ServerDefines -DX11R4 $(BSDDEFS) $(BSDTYPE) $(BSDINCS) /* Build server in BSD world */
#define ConnectionFlags -DTCPCONN -DUNIXCONN /* -DDNETCONN */
#define FontDefines -DFONT_SNF -DFONT_BDF -DCOMPRESSED_FONTS
#define ExtensionDefines -DMITMISC -DMITSHM -DMULTIBUFFER -DSHAPE /* -DXTESTEXT1 */ -DXTRAP
/* bandaid for improperly #ifdef-ed Imakefiles; will be cleaned up in R5 */
#define MITMISC
#define MITSHM
#define MULTIBUFFER
#define SHAPE
/*****************************************************************************
* *
* OVERRIDE ANY CONFIGURATION PARAMETERS FROM Imake.tmpl *
* *
*****************************************************************************/
#define BuildServer YES
#define BuildVisix YES
#define BuildMvd YES
#define BuildExamples NO
#ifndef MIPSBUILD
#define BuildMDemoBinarys YES
#endif
#define SpecialMalloc NO
#define ExpandManNames YES /* expand Xlib man page filenames */
#define InstallXinitConfig NO /* install sample xinit config */
#define InstallXdmConfig YES /* install sample xdm config */
#define PrimaryScreenResolution 110
#define DefaultFontPath /usr/X11/lib/X11/fonts/misc/,/usr/X11/lib/X11/fonts/100dpi/,/usr/X11/lib/X11/fonts/75dpi/,/usr/X11/lib/X11/fonts/oldX11/
#define DefaultRGBDatabase /usr/X11/lib/X11/rgb
/* Don't add anything after '1' and '3X' */
#define ManSuffix 1
#define LibManSuffix 3X
#define UNCOMPRESSPATH /usr/ucb/uncompress
#define ConstructMFLAGS NO /* build MFLAGS from MAKEFLAGS */
#define BDFTOSNFFILT -DBDFTOSNFFILT=\"$(BINPATH)/bdftosnf\"
#define ZBDFTOSNFFILT -DZBDFTOSNFFILT=\"UNCOMPRESSPATH" | $(BINPATH)/bdftosnf $(FCFLAGS)\""
#define OptimizedCDebugFlags $(OPTIM) $(CCOPT)
#define DefaultCDebugFlags OptimizedCDebugFlags
#define LibraryCDebugFlags OptimizedCDebugFlags
#define ServerCDebugFlags $(OPTIM) $(CCOPT) -G 4000
#define DestDir $(DESTROOT)
#define UsrLibDir $(DESTDIR)/usr/$(XINSTALLDIR)/lib
#define BinDir $(DESTDIR)/usr/$(XINSTALLDIR)/bin
#define IncRoot $(DESTDIR)/usr/$(XINSTALLDIR)/include
#define XdmDir $(DESTDIR)/usr/var/X11/etc/xdm
#define DefaultUserPath /usr/net:/bin:/usr/bin:$(BINPATH):/usr/ucb
#define DefaultSystemPath /usr/net:/bin:/usr/bin:/etc:$(BINPATH):/usr/ucb
#define ManDirectoryRoot /man/cat
#define ManPath $(DESTDIR)/usr/$(XINSTALLDIR)/**/ManDirectoryRoot
#define ManSourcePath $(MANPATH)/man
#define ManDir $(MANSOURCEPATH)1
#define LibmanDir $(MANSOURCEPATH)3
#define InstManFlags -m 0444
#define InstAppFlags -m 0444 -f
#define InstKmemFlags -g sys -m 2755
#if CrossEnvEnable
#define FCCmd $(BUILDTOOLSDIR)/bdftosnf
#define MkfontdirCmd $(BUILDTOOLSDIR)/mkfontdir
#endif /* CrossEnvEnable */
#define ExtensionLib -L$(EXTENSIONSRC)/lib -lXext
#define XLib -L$(XLIBSRC) -lX11
#define XmuLib -L$(XMUSRC) -lXmu
#define OldxLib -L$(OLDXLIBSRC) -loldX
#define XtoolLib -L$(TOOLKITSRC) -lXt
#define XawLib -L$(AWIDGETSRC) -lXaw
/*****************************************************************************
* *
* DEFINE OS DEPENDENT RULES *
* *
*****************************************************************************/
#define MipsLibraryTarget(lib,cflags,objs) @@\
AllTarget(lib) @@\
@@\
.s.a: @@\
@ @@\
@@\
.c.a: @@\
@ @@\
@@\
lib:: objs @@\
$(CC) -c cflags $(?:.o=.c) @@\
$(AR) $@ $? @@\
$(RM) $?
#define MipsStrippedLibraryTarget(lib,cflags,objs) @@\
AllTarget(lib) @@\
@@\
.s.a: @@\
@ @@\
@@\
.c.a: @@\
@ @@\
@@\
lib:: objs @@\
$(CC) -c cflags $(?:.o=.c) @@\
$(AR) $(@:.a=.ns.a) $? @@\
for i in $? ; do \ @@\
$(LD) -x -r $$i ; \ @@\
$(MV) a.out $$i ; \ @@\
done @@\
$(AR) $@ $? @@\
$(RM) $?
#define MipsLibraryDependTarget(lib,cflags,srcs) @@\
depend:: $(DEPEND) @@\
@@\
depend:: @@\
$(DEPEND) -A lib -s "# lib dependencies" -- cflags -- srcs @@\
@@\
$(DEPEND): @@\
@echo "making $@"; \ @@\
cd $(DEPENDSRC) && $(MAKE) $(MFLAGS) @@\
/*
* This target is the general interface for building a single program
*/
#define ComplexProgramTargetWithFlags(program,flags) @@\
PROGRAM = program @@\
@@\
AllTarget(program) @@\
@@\
program: $(OBJS) @@\
$(RM) $@ @@\
$(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(EXTRA_LOAD_FLAGS) @@\
@@\
relink:: @@\
$(RM) $(PROGRAM) @@\
$(MAKE) $(MFLAGS) MakeEnv $(PROGRAM) @@\
@@\
InstallProgramWithFlags(program,$(BINDIR),flags) @@\
InstallManPage(program,$(MANDIR)) @@\
DependTarget() @@\
LintTarget() @@\
@@\
clean:: @@\
$(RM) $(PROGRAM)
/*
* Mips man page rules -- we install preformatted man pages only
* InstallManPageLong (file,destdir,dest)
* InstallMultipleMan (list,dest)
*/
#if PSManInst
#define _IfPSMan(a)a
#else
#define _IfPSMan(a)
#endif
#define _PSManFile(manfile)_IfPSMan(manfile.ps.Z)
/*
* InstallManPageLong - generate rules to install the indicated manual page,
* giving it an alternate name. This is used for installing man pages whose
* base name without the .man suffix would normally be longer than 8 characters
* (the limit for using source code control systems on files systems with
* short file names).
*/
#define InstallManPageLong(file,destdir,dest) @@\
AllTarget(file.ManSuffix _PSManFile(file.ManSuffix)) @@\
@@\
file.ManSuffix: file.man @@\
nroff -man $? > $@ @@\
@@\
install.man:: file.ManSuffix @@\
$(INSTALL) -c $(INSTMANFLAGS) -f file.ManSuffix destdir/dest.ManSuffix @@\
@@\
_IfPSMan(\
_PSManFile(file.ManSuffix): file.man @@\
$(PTROFF) -t -man $? | $(COMPRESS) > $@ @@\
@@\
install.man:: _PSManFile(file.ManSuffix) @@\
$(INSTALL) -c $(INSTMANFLAGS) -f _PSManFile(file.ManSuffix) \ @@\
`echo destdir | sed -e s/man/psman/`/dest.ManSuffix.Z @@\
)\
@@\
clean:: @@\
$(RM) file.ManSuffix _PSManFile(file.ManSuffix)
/*
* InstallMultipleMan - generates rules to install a variety of manual
* pages during the install.man step of the build.
*
* XXX PostScript part won't work because we use this to install
* the *formatted* man pages.
*/
#define InstallMultipleMan(list,dest) @@\
InstallMultipleDest(install.man,list,dest) @@\
_IfPSMan(\
@@\
install.man:: list @@\
set -x; \ @@\
psdest=`echo dest | sed -e s/man/psman/` ; \ @@\
for i in list; do \ @@\
$(PTROFF) -t -man $$i | $(COMPRESS) > _PSManFile($$i); \ @@\
$(INSTALL) -c $(INSTMANFLAGS) -f _PSManFile($$i) $$psdest/$$i.Z; \ @@\
done @@\
)
#if CrossEnvEnable
#define MipsMakeBuildTools(tool) @@\
buildtools: tool @@\
$(INSTALL) -c $(INSTALLFLAGS) tool $(BUILDTOOLSDIR) @@\
$(RM) tool @@\
$(RM_CMD) "#"*
#endif /* CrossEnvEnable */
#if DSOEnable
#define MipsLinkDSO(soname,arname,libdep,syslibdep,syst,abi) \
$(SHELL) $(SCRIPTSRC)/so_locations_util.sh -init $(TOP) @@\
$(LD) -o $@ \ @@\
-shared $(DSOLD_/**/syst/**/abi) \ @@\
-update_registry $(TOP)/lib/so_locations_/**/syst \ @@\
libdep \ @@\
-so/**/name lib/**/soname \ @@\
-L \ @@\
-L$(DESTROOT)//**/syst/**//usr/lib \ @@\
-L$(DESTROOT)//**/syst/**//usr/lib/cmplrs/cc \ @@\
-L//**/syst/**//usr/lib \ @@\
-L//**/syst/**//usr/lib/cmplrs/cc \ @@\
syslibdep \ @@\
-all lib/**/syst/**/arname.ns.a
#define MipsDSOLibraryTarget(libname,libdep,syslibdep,syst) \
MipsDSOLibraryTarget2(libname/**/.so,libname,libdep,syslibdep,syst,)
#define MipsDSOLibraryTarget2(soname,arname,libdep,syslibdep,syst,abi) @@\
AllTarget(lib/**/syst/**/soname) @@\
@@\
lib/**/syst/**/arname.ns.a: lib/**/syst/**/arname.a @@\
@@\
lib/**/syst/**/soname:: lib/**/syst/**/arname.ns.a @@\
MipsLinkDSO(soname,arname,libdep,syslibdep,syst,abi)
#define MipsInstallDSOLibrary(libname,dest) \
MipsInstallDSOLibrary2(libname.so,dest)
#define MipsInstallDSOLibrary2(soname,dest) @@\
install:: lib/**/soname @@\
$(INSTALL) -c $(INSTLIBFLAGS) lib/**/soname dest @@\
$(SHELL) $(SCRIPTSRC)/so_locations_util.sh -install \ @@\
$(TOP) lib/**/soname dest
#define MipsAliasedDSOLibraryTarget(libname,alias) @@\
AllTarget(lib/**/alias.so) @@\
@@\
lib/**/alias.so: lib/**/libname.so @@\
$(RM) $@ @@\
$(LN) lib/**/libname.so $@
#define MipsInstallDSOLibraryAlias(libname,alias,dest) @@\
install:: @@\
-(cd dest && $(LN) lib/**/libname.so lib/**/alias.so)
#endif /* DSOEnable */
/*
* MipsSpecialObjectRule - generate rules to compile a file with special flags.
*/
#ifndef MipsSpecialObjectRule
#define MipsSpecialObjectRule(lib,objs,cflags,depends,options) @@\
lib:: lib(objs) @@\
@@\
lib(objs): depends @@\
$(CC) -c cflags options $(<:.o=.c) @@\
$(AR) $(@:.a=.ns.a) $% @@\
$(LD) -x -r $% @@\
$(MV) a.out $% @@\
$(AR) lib $% @@\
$(RM) $% @@\
$(RANLIB) lib
#endif /* MipsSpecialObjectRule */
/*
* MipsSourceInstall - used to install source for contrib and demo programs.
* You must have Makefile.independent and source.list.
*/
#ifndef UseInstalled
#define MipsSourceInstall(dir) @@\
Makefile.independent: Imakefile @@\
@$(RM) $@ @@\
$(IMAKE_CMD) -s $@ -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR) -DUseInstalled -DBuildMDemoBinarys @@\
@@\
install:: Imakefile Makefile.independent source.list @@\
$(INSTALL) -c $(INSTALLFLAGS) Imakefile dir @@\
$(INSTALL) -c $(INSTALLFLAGS) -f Makefile.independent dir/Makefile @@\
cpio -pduvL dir < source.list
#else /* UseInstalled */
#define MipsSourceInstall(dir)
#endif /* UseInstalled */
/*
* MipsInstallExec - generate rules to install an executable file.
* (not a program that can be stripped and
* not a shell script ending in .script)
*/
#ifndef MipsInstallExec
#define MipsInstallExec(file,dest) @@\
install:: file @@\
$(INSTALL) -c $(INSTALLFLAGS) file dest
#endif /* MipsInstallExec */